package com.xohm.upgrades.UpdateService;

public class UpdateServicePortTypeProxy implements com.xohm.upgrades.UpdateService.UpdateServicePortType {
  private String _endpoint = null;
  private com.xohm.upgrades.UpdateService.UpdateServicePortType updateServicePortType = null;
  
  public UpdateServicePortTypeProxy() {
    _initUpdateServicePortTypeProxy();
  }
  
  private void _initUpdateServicePortTypeProxy() {
    try {
      updateServicePortType = (new com.xohm.upgrades.UpdateService.UpdateServiceLocator()).getUpdateServiceHttpPort();
      if (updateServicePortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)updateServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)updateServicePortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (updateServicePortType != null)
      ((javax.xml.rpc.Stub)updateServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.xohm.upgrades.UpdateService.UpdateServicePortType getUpdateServicePortType() {
    if (updateServicePortType == null)
      _initUpdateServicePortTypeProxy();
    return updateServicePortType;
  }
  
  public com.xohm.upgrades.GetAvailableUpdateResponse checkForUpdates(com.xohm.upgrades.GetAvailableUpdateRequest getAvailableUpdateRequest) throws java.rmi.RemoteException{
    if (updateServicePortType == null)
      _initUpdateServicePortTypeProxy();
    return updateServicePortType.checkForUpdates(getAvailableUpdateRequest);
  }
  
  public com.xohm.upgrades.UpdateStatusResponse getUpdateStatus(com.xohm.upgrades.UpdateStatusRequest in0) throws java.rmi.RemoteException{
    if (updateServicePortType == null)
      _initUpdateServicePortTypeProxy();
    return updateServicePortType.getUpdateStatus(in0);
  }
  
  
}